package com.sumainfor.pc.market.controller;

import com.sumainfor.common.util.JsonResult;
import com.sumainfor.pc.market.service.ProvinceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * 功能描述:
 * 省份
 * @Auther: zhlu
 * @Date: 2019/3/11 17:59
 * @Description:
 */
@RestController
@RequestMapping("/province")
public class ProvinceController {

    @Autowired
    ProvinceService ProvinceService;

    /**
     * 功能描述: 
     * 获取所有的省份
     * @Author zhlu
     * @Description //TODO
     * @Date 2019/3/11 18:02
     */
    @GetMapping("/getProvinceList")
    public JsonResult getProvinceList(@RequestParam Map<String,Object> params){
        JsonResult result=new JsonResult();
        params.put("delfg",0);
        result.put(ProvinceService.getProvinceList(params));
        return result;
    }

}
